.class final Lcom/wqmobile/sdk/protocol/u;
.super Landroid/os/Handler;


# instance fields
.field private synthetic a:Lcom/wqmobile/sdk/protocol/t;


# direct methods
.method constructor <init>(Lcom/wqmobile/sdk/protocol/t;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public final handleMessage(Landroid/os/Message;)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/t;->a(Lcom/wqmobile/sdk/protocol/t;)V

    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->b:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-eq v0, v1, :cond_0

    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->d:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v1

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/r;->a:[B

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/protocol/a;->a([B)[B

    move-result-object v0

    if-eqz v0, :cond_1

    const/4 v1, 0x1

    aget-byte v1, v0, v1

    sget-object v2, Lcom/wqmobile/sdk/protocol/cmd/d;->k:Lcom/wqmobile/sdk/protocol/cmd/d;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/protocol/cmd/d;->a()I

    move-result v2

    if-eq v1, v2, :cond_1

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/r;->b(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v1

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget v0, p1, Landroid/os/Message;->what:I

    iput v0, v1, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->b(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->a:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v0

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/r;->b:[B

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/u;->a:Lcom/wqmobile/sdk/protocol/t;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/t;->b(Lcom/wqmobile/sdk/protocol/t;)Lcom/wqmobile/sdk/protocol/r;

    move-result-object v1

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/r;->b:[B

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    :try_start_2
    monitor-exit v0

    throw v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/Exception;)V

    goto :goto_0
.end method
